package constructor11;

public class NetworkMaintenanceEngineer extends Maintenance{

    public NetworkMaintenanceEngineer(String id, String name, boolean marrystatus) {
        super(id, name, marrystatus);
    }

    public NetworkMaintenanceEngineer(String id, String name) {
        super(id, name);
    }

    @Override
    public void work() {
        System.out.println("员工号为" + getId() + "的" + (isMarrystatus() ? "已婚" : "未婚") + getName() + "员工,正在检查网络是否畅通");
    }
}
